package Day03;
import java.util.Scanner;
public class WeekTest {
    public static void main(String[] args) {
        /*System.out.println("------------练习1-----------");
        int score=55;
        char grade=score>=90?'A':(score>=60?'B':'C');
        System.out.println(score+"分等级为"+grade);
        System.out.println("----------练习2-------------");
        int a =5;
        if (a%2 == 0){
            System.out.println(a+"为偶数");
        }else {
            System.out.println(a+"为奇数");
        }
        System.out.println("-------------练习3----------------");
        int c=3,d=4;
        if (c>=d){
            System.out.println("最大的数字为"+c);
        }else{
            System.out.println("最大的数字为"+d);
        }
        System.out.println("-------------练习4----------------");
        int score1=85;
        if (score1>=90){
            System.out.println(score1+"分为优秀");
        }else if (score1>=80){
            System.out.println(score1+"分为良好");
        }else if (score1>=70){
            System.out.println(score1+"分为中等");
        }else if (score1>=60){
            System.out.println(score1+"分为及格");
        }else if (score1<60){
            System.out.println(score1+"分为不及格");
        }

         */

        Scanner scan = new Scanner(System.in);//新建一个扫描仪
        System.out.println("请输入年龄");
        int age = scan.nextInt();//扫描一个输入的整数并赋值给age
        System.out.println("年龄为"+age);


    }
}
